using System;
using System.Collections.Generic;
using System.Text;
using EnvDTE;
using EnvDTE80;

using iMainAddin;

namespace iAdministerAddin
{
    public class iAdministerEvents : iAdminister
    {
        public delegate Object CreateEventObject(DTE2 application);
        protected static List<CreateEventObject> mCreateList = new List<CreateEventObject>(10);
        protected List<Object> mEventsObjList;
        public iAdministerEvents()
        {
            mEventsObjList = new List<Object>(mCreateList.Count);
            Object eventObj = new iProjectItem(m_Application);            
            mEventsObjList.Add(eventObj);
            eventObj = new iDocument(m_Application);
            mEventsObjList.Add(eventObj);

            
        }
        public iAdministerEvents(DTE2 application)
        {
            
        }
        public static bool AddCreateFunction(CreateEventObject createFunction)
        {
            try
            {
                mCreateList.Add(createFunction);
            }
            catch (System.Exception ex)
            {
                return false;
            }            
            return true;
        }
    }
}
